package com.hxy.subject.domain.convert;

import com.hxy.subject.domain.entity.SubjectInfoBO;
import com.hxy.subject.infra.basic.entity.SubjectInfo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author haoxuyang
 * @Date 2024/9/8 19:34
 */
@Mapper
public interface SubjectInfoConverter {
    SubjectInfoConverter INSTANCE = Mappers.getMapper(SubjectInfoConverter.class);

    SubjectInfo subjectInfoBoToInfo(SubjectInfoBO bo);

    List<SubjectInfoBO> subjectInfoToBoList(List<SubjectInfo> list);
}
